# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=catgirl
pkgver=2.2a
pkgrel=0
pkgdesc="TLS-only terminal IRC client"
arch="all"
url="https://git.causal.agency/catgirl/"
license="GPL-3.0-or-later"
options="!check" # No test suite
makedepends="libretls-dev ncurses-dev"
subpackages="$pkgname-doc"
source="https://git.causal.agency/catgirl/snapshot/catgirl-$pkgver.tar.gz"

build() {
	export CFLAGS="$CFLAGS -flto=auto"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make all
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
988750c960630ec8314ebde7b9802f8b6a3087f733359f61f49c4f83cb6e327c03cde9ad88f2cb535d56ead1376cd121a7124c367c90394a6d4d7f80b25e329f  catgirl-2.2a.tar.gz
"
